package com.atguigu.gmall.product.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author:lyd
 * @Date:2023/8/15 18:21
 * @Version:1.0
 * @Description
 **/
@NoArgsConstructor
@Data
public class SaveAttrInfoVo {

    @JsonProperty("id")
    private Long id;
    @JsonProperty("attrName")
    private String attrName;
    @JsonProperty("category1Id")
    private Long category1Id;
    @JsonProperty("category2Id")
    private Long category2Id;
    @JsonProperty("category3Id")
    private Long category3Id;
    @JsonProperty("attrValueList")
    private List<AttrValueListDTO> attrValueList;
    @JsonProperty("categoryId")
    private Long categoryId;
    @JsonProperty("categoryLevel")
    private Integer categoryLevel;

    @NoArgsConstructor
    @Data
    public static class AttrValueListDTO {
        @JsonProperty("id")
        private Long id;
        @JsonProperty("valueName")
        private String valueName;
        @JsonProperty("attrId")
        private Long attrId;
        @JsonProperty("edit")
        private Boolean edit;
    }
}
